Skip to content

(feat) Provide example integration with Rustls crate#138

Merged
jonhoo merged 4 commits intojonhoo:masterfrom
brycefisher:feat/rustls-support
Sep 18, 2019
Merged

(feat) Provide example integration with Rustls crate#138
jonhoo merged 4 commits intojonhoo:masterfrom
brycefisher:feat/rustls-support

Conversation

@brycefisher
Copy link
Copy Markdown
Contributor

By checking this code in as an example, we can prevent bitrot as we continuously test this
in CI. It also demonstrates how to setup TLS without relying on platform specific dependencies
via native_tls crate.

First step of #123

By checking this code in as an example, we can prevent bitrot as we continuously test this
in CI. It also demonstrates how to setup TLS without relying on platform specific dependencies
via native_tls crate.
The underlying Rust library for crypto `ring` using multiple
`#[cfg_attr()]` properties together which stabilized in rust 1.33.0:
https://github.com/rust-lang/rust/blob/stable/RELEASES.md#language-4

Previously, everything else in this could be compiled with rust 1.32.0,
so this may constitute a breaking change.
Comment thread azure-pipelines.yml
Comment thread examples/rustls.rs Outdated

fn main() -> Result<(), Box<dyn Error>> {
// Read config from environment or .env file
dotenv().ok();
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we probably don't need to include dotenv in this example.

@brycefisher
Copy link
Copy Markdown
Contributor Author

brycefisher commented Sep 18, 2019 via email

@brycefisher
Copy link
Copy Markdown
Contributor Author

brycefisher commented Sep 18, 2019 via email

@jonhoo
Copy link
Copy Markdown
Owner

jonhoo commented Sep 18, 2019

Hmm... Testing with a separate version just for one subcrate will be annoying, as will not having it show up as a regular example. I think I'm inclined to keep the MSRV version bump. It's too bad, but I don't think it's actually a problem since the bump won't apply to those who rely just on the imap crate (since rusttls is a dev-dependency).

@jonhoo jonhoo merged commit c8288ea into jonhoo:master Sep 18, 2019
@brycefisher brycefisher deleted the feat/rustls-support branch September 18, 2019 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants